package org.istone.mylife.component.security.authentication;

import java.io.Serializable;
import java.util.Date;

import org.istone.mylife.component.security.AuthenticationException;

public interface Password extends Serializable {

    public int getLength() throws AuthenticationException;

    public boolean isExpired();

    public boolean activate() throws AuthenticationException;

    public boolean expire() throws AuthenticationException;

    public boolean equals(Password password);

    public boolean equals(String pwdValue);

    public String getStringValue();

    public void setStringValue(String value);

    public Date getExpiryDate();

    public void setExpiryDate(Date date) throws AuthenticationException;

}
